package com.cn.xiaonuo.slbfinances.slbunions.controller;

import com.cn.xiaonuo.common.entity.BusinessMessage;
import com.cn.xiaonuo.slbfinances.slbunions.service.ILmOrderService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class LmOrderController {
    @Resource
    private ILmOrderService lmOrderService;

    @ApiOperation(value = "搜了联盟--搜了联盟列表", notes = "搜了联盟--搜了联盟列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "userId", value = "用户ID（String）"),
            @ApiImplicitParam(name = "orderId", value = "订单ID（String）"),
            @ApiImplicitParam(name = "beginTime", value = "开始时间（Long）"),
            @ApiImplicitParam(name = "endTime", value = "结束时间（Long）"),
            @ApiImplicitParam(name = "pageNo", value = "第几页（Integer）", required = true),
            @ApiImplicitParam(name = "pageSize", value = "每页长度（Integer）", required = true)
    })
    @RequestMapping(value = "/api/lmorder/selectLmOrderInfo", method = RequestMethod.POST)
    public BusinessMessage selectLmOrderInfo(String userId, String  orderId, Long beginTime, Long endTime, Integer pageNo, Integer pageSize) {
        return lmOrderService.selectLmOrderInfo(userId,orderId,beginTime,endTime,pageNo,pageSize);
    }
}
